import request from '@/utils/request'

// 查询预约登记列表
export function listRegistration(query) {
  return request({
    url: '/le/registration/list',
    method: 'get',
    params: query
  })
}

// 查询预约登记详细
export function getRegistration(id) {
  return request({
    url: '/le/registration/' + id,
    method: 'get'
  })
}

// 新增预约登记
export function addRegistration(data) {
  return request({
    url: '/le/registration',
    method: 'post',
    data: data
  })
}

// 修改预约登记
export function updateRegistration(data) {
  return request({
    url: '/le/registration',
    method: 'put',
    data: data
  })
}

// 删除预约登记
export function delRegistration(id) {
  return request({
    url: '/le/registration/' + id,
    method: 'delete'
  })
}

//修改到院时间
export function updateRegistrationArrivalTime(data) {
  return request({
    url: '/le/registration/update',
    method: 'put',
    data: data
  })
}
